package com.aerotechnic.service.implementation;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.aerotechnic.dao.implementation.AvionDao;
import com.aerotechnic.dao.implementation.RessourceTrackDao;
import com.aerotechnic.entities.RessourceTrack;
import com.aerotechnic.service.interfaces.RessourceTrackBoIn;

@Service("RessourceTrackBo")
@Transactional
public class RessourceTrackBo implements RessourceTrackBoIn {
	
	@Autowired
	private RessourceTrackDao ressourceTrackDao;
	
	@Override
	public void save(RessourceTrack ressource) {
		// TODO Auto-generated method stub
		ressourceTrackDao.save(ressource);
	}

	@Override
	public void update(RessourceTrack ressource) {
		// TODO Auto-generated method stub
		ressourceTrackDao.update(ressource);
	}

	@Override
	public void delete(Long id) {
		// TODO Auto-generated method stub
		ressourceTrackDao.delete(id);
	}

	@Override
	public RessourceTrack findByID(Long id) {
		// TODO Auto-generated method stub
		return ressourceTrackDao.findByID(id);
	}

	@Override
	public List<RessourceTrack> findAll() {
		// TODO Auto-generated method stub
		return ressourceTrackDao.findAll();
	}

	
}
